package com.zxjbyte.yiyi.module.system.service.oss;

import com.zxjbyte.yiyi.framework.common.domain.api.PageResult;
import com.zxjbyte.yiyi.framework.mybatis.service.BaseServiceX;
import com.zxjbyte.yiyi.module.system.domain.entity.OssConfigPO;
import com.zxjbyte.yiyi.module.system.domain.request.oss.OssConfigAddRequest;
import com.zxjbyte.yiyi.module.system.domain.request.oss.OssConfigPageRequest;
import com.zxjbyte.yiyi.module.system.domain.request.oss.OssConfigUpdateRequest;
import com.zxjbyte.yiyi.module.system.domain.response.oss.OssConfigPageResponse;

/**
 * @Author zhangxingjia
 * @Date 2023/5/11 16:16
 * @Version: 1.0
 */
public interface IOssConfigService extends BaseServiceX<OssConfigPO> {

    OssConfigPO getMasterConfigByStorageCode(String storageCode);

    PageResult<OssConfigPageResponse> page(OssConfigPageRequest pageRequest);

    void add(OssConfigAddRequest request);

    void update(OssConfigUpdateRequest request);

    void changeMaster(Long id);

    void delete(Long id);
}
